package com.dms.wuziqi.service.serviceImpl;

import com.dms.wuziqi.mapper.ManagerMapper;
import com.dms.wuziqi.pojo.Manager;
import com.dms.wuziqi.pojo.User;
import com.dms.wuziqi.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    ManagerMapper managerMapper;

    @Override
    public Manager findManager(String ManagerName, String ManagerPwd) {
       Manager manager= managerMapper.findManager(ManagerName,ManagerPwd);
       return manager;
    }

    @Override
    public List<User> findAllUser() {
        List<User> userList=managerMapper.findAllUser();
        return userList;
    }
}
